<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Person</title>
</head>
<body>

    <h1>Person.html</h1>
    <h3>name:{{ name }}</h3>
    <h3>age:{{ age }}</h3>

    {% if money <= 3000.00 %}
        <span>存款：{{ money }}元，有点穷哦</span>
    {% elif money <= 10000.00 %}
        <span>存款：{{ money }}元，还不错哦有点小钱</span>
    {% else %}
        <span>存款大于10000元，很有钱！！！</span>
    {% endif %}

    {% if gender %}
        <h3>性别：女</h3>
    {% else %}
        <h3>性别：男</h3>
    {% endif %}

    <br>
    盆友们：
    {% for i in friend %}
        {% if forloop.first %}
            <span style="color: crimson">{{ i }}</span>
        {% else %}
            <span style="color: forestgreen">{{ i }}</span>
        {% endif %}

    {% endfor %}

    <br>
    <h3>children:{{children  }}</h3>
    <h3>dic:{{ dic }}</h3>

    <ol>
        {% for item in set %}
{#            第几个<li>{{ forloop.counter }}</li>#}
{#            从第几个开始<li>{{ forloop.counter0 }}</li>#}
{#            是否为第一个<li>{{ forloop.first }}</li>#}
{#            是否为最后一个<li>{{ forloop.last }}</li>#}
{#            <li>{{ forloop.parentloop }}</li>#}
{#            几个未遍历<li>{{ forloop.revcounter }}</li>#}
             <li>{{ item }}</li>
        {% endfor %}
    </ol>

    <h3>fun:{{ fun }}</h3>
    <h3>a:{{ a }}</h3>

</body>
</html>